[index]

Abs Function

Syntax

abs (<number>)
or the abs of <number>

Description

abs is a mathematical function that returns the absolute value of a number; that is, the displacement of a number from the origin, expressed as a positive number. The following list gives some examples: Typing: abs (-1) Return: 1 Typing: abs (1) Returns: 1 Typing: abs (-2.3) Returns: 2.3 Typing: abs (2.3) Returns: 2.3

Examples

To put the absolute values of -5 and 5 into two variables and add them together, type the following statements into the Message Box and press Enter after each: put abs (-5) into factor1 put abs (5) into factor2 put factor1 + factor2 into my_result my_result
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.